import javax.swing.*;
import java.awt.*;

public class Bransa {
    private JPanel Bransa;
    private JPanel test;

    public static void main(String[] args) {

        JFrame jFrame = new JFrame("MprStart");
        Container container = jFrame.getContentPane();
        //设置一个JPanel对象
        JPanel jPanel = new JPanel();
        //设置标签
        JLabel jLabel = new JLabel("单点即可按钮连续打开MPR文件");
        //将标签放进JPanel容器中
        jPanel.add(jLabel);
        //把JPanel组件放进container组件
        container.add(jPanel);
        //设置窗体大小
        jFrame.setSize(400,200);
        //设置窗口左上角坐标
        jFrame.setLocation(700, 400);
        jFrame.setBackground(Color.white);
        //设置窗体可见
        jFrame.setVisible(true);
        //设置窗体默认关闭方式
        jFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

    }
}
